#与，并且 and
print(True  and   True)
print(1==1 and True and 2<3)
print('hello'and'hi')   #短路运算
print(''and'hi')
print(False  and  'hi' )
print(0  and   1)
#或者or
print(True or False)
print(False or True or False)
print(1 or 0)
print(2024 or 0)
print(0 or '' or 888)

#非not
print(not True)
print(not 1)
print(not '')

#优先级
print(True and False  and  not  False)
print(True or False and True or False)